home *** CD-ROM | disk | FTP | other *** search
- /*
- CSTRINGS.LBR VERSION 1.0
- Spark Software, Inc.
-
- If you find this software of use, it is requested that you send
- a donation ($10.00 suggested) to:
-
- Spark Software, Inc.
- 24 Royal Crest Dr., #5
- Nashua, NH 03060
-
- Upon receiving your donation, your name will be added to the
- List of Registered Users, and future updates can be obtained
- from the SPARKIE RBBS at (603) 888-8179.
-
- If you include an extra $10.00 with your donation, the newest
- version of CSTRINGS.LBR will be mailed to you.
-
- Call SPARKIE RBBS at the number above for other Spark Software
- products!!!
- */
-
- /*
- * strb (s, n1, n)
- * char *s;
- * int n1, n;
- *
- * This function places a blank at all of the character positions from
- * n1 to n in string s. Note that string s starts at character position
- * 0 and not character position 1.
- */
-
- strb (s, n1, n)
- char *s;
- int n1, n;
- {
- int i;
-
- for (i = n1; i <= n; i++)
- s[i] = ' ';
- } /* strb */
-
- /*
- * strblf (s, n)
- * char *s;
- * int n;
- *
- * This function places blanks in all character positions in s, from position
- * 0 thru position n.
- */
-
- strblf (s, n)
- char *s;
- int n;
- {
- int i;
-
- for (i = 0; i <= n; i++)
- s[i] = ' ';
- } /* strblf */
-
- /*
- * strbrt (s, n)
- * char *s;
- * int n;
- *
- * This function places blanks in s starting at position n, and ending
- * at the last non-null character in the string.
- */
-
- strbrt (s, n)
- char *s;
- int n;
- {
- char *c;
-
- c = &s[n];
- while (*c != '\0')
- *c++ = ' ';
- } /* strbrt */